<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <title th:text="${session.title}">123</title>
    <link th:replace="common/header" />
    <link rel="stylesheet" th:href="@{/css/ace-skins.min.css}" />
    <script type="text/javascript" th:src="@{/js/layer/znx.js}"></script>
    <script type="text/javascript" th:src="@{/js/layer/tabpane.js}"></script>
</head>
<body class="navbar-fixed">
<div th:replace="common/top"></div>
<div class="container-fluid main_bg" id="main-container">
    <a id="menu-toggler" href="#"><span></span></a>
    <div th:replace="common/menu"></div>
    <div id="main-content" class="clearfix">
        <div id="page-content" class="clearfix">
            <div th:replace="common/title"></div>
            <div class="row-fluid">
                <!--收件箱 HERE-->
                <div class="widget-box transparent span6">
                    <div class="table_border">
                        <div class="head_title">
                            <h3 class="lighter smaller"> <em class="icon-envelope-alt white"></em>收件箱 </h3>
                        </div>
                        <div class="widget-body">
                            <div id="comment-tab" class="tab-pane">
                                <div class="comments">
                                    <div class="itemdiv commentdiv" th:each="t:${znxList}">
                                        <div class="user">
                                            <img alt="" th:src="@{/images/logo2.png}" src="" th:if="${null == t.logo}" />
                                            <img alt="" th:src="@{'/' + ${t.logo}}" src="" th:if="${null != t.logo}" />
                                        </div>
                                        <div class="body">
                                            <div class="name">
                                                <a th:href="@{/hy/footZnx/view(id=${t.id})}">${t.senderName}</a>
                                            </div>
                                            <div class="time">
                                                <em class="icon-time"></em>
                                                <span class="green" th:text="${#dates.format(t.sendTime, 'yyyy-MM-dd')}">&nbsp;</span>
                                            </div>
                                            <div class="text">
                                                <em class="icon-quote-left"></em>
                                                <span th:text="${#strings.length(t.content) &gt; 48 ? #strings.substring(t.content ,0 ,48) + '…' : t.content}"></span>
                                                <em class="icon-quote-right"></em>
                                            </div>
                                        </div>
                                        <div class="tools">
                                            <div class="inline position-relative">
                                                <button class="btn btn-minier bigger btn-yellow dropdown-toggle" data-toggle="dropdown"> <em class="icon-angle-down icon-only bigger-120"></em> </button>
                                                <ul class="dropdown-menu dropdown-icon-only dropdown-yellow pull-right dropdown-caret dropdown-close">
                                                    <li id="isreadli" th:if="${t.read == false}"><a th:onclick="'javascript:znxyd(' + ${t.id} + ');'" class="tooltip-success" data-rel="tooltip" title="标为已读" data-placement="left"> <span class="green"><em class="icon-ok"></em></span></a></li>
                                                    <li><a th:href="@{/deleteznx(id=${t.id})}" class="tooltip-error" data-rel="tooltip" title="删除" data-placement="left"> <span class="red"><em class="icon-trash"></em></span></a></li>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="hr hr8"></div>
                                <div class="center">
                                    <em class="icon-comments-alt icon-2x green"></em>&nbsp;
                                    <a th:href="@{/hy/footZnx/search}">查看所有消息 &nbsp;<em class="icon-arrow-right"></em></a>
                                </div>
                                <div class="hr hr-double hr8"></div>
                            </div>
                        </div>
                    </div>
                </div>
                <!--收件箱 HERE-->
                <!--公告板 HERE-->
                <div class="widget-box transparent span6">
                    <div class="table_border">
                        <div class="head_title">
                            <h3 class="lighter smaller"> <em class="icon-comments-alt white"></em>公告板 </h3>
                        </div>
                        <div class="widget-body">
                            <div id="comment-tab" class="tab-pane">
                                <div class="comments">
                                    <div class="itemdiv commentdiv" th:each="t:${lyList}">
                                        <div class="user">
                                            <img alt="" th:src="@{/images/logo2.png}" src="" />
                                        </div>
                                        <div class="body">
                                            <div class="name">
                                                <a th:href="@{/hy/footLy/view(id=${t.id})}">管理员</a>
                                            </div>
                                            <div class="time">
                                                <em class="icon-time"></em>
                                                <span class="green" th:text="${#dates.format(t.sendTime, 'yyyy-MM-dd')}">&nbsp;</span>
                                            </div>
                                            <div class="text">
                                                <em class="icon-quote-left"></em>
                                                <span th:text="${#strings.length(t.content) &gt; 48 ? #strings.substring(t.content ,0 ,48) + '…' : t.content}"></span>
                                                <em class="icon-quote-right"></em>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="hr hr8"></div>
                                <div class="center">
                                    <em class="icon-comments-alt icon-2x green"></em>&nbsp;
                                    <a th:href="@{/hy/footLy/search}">查看所有消息 &nbsp;<em class="icon-arrow-right"></em></a>
                                </div>
                                <div class="hr hr-double hr8"></div>
                            </div>
                        </div>
                    </div>
                </div>
                <!--公告板 HERE-->
            </div>
            <div class="row-fluid">
                <!--排位赛 HERE-->
                <div class="span6 table_border top10" style="height:310px;">
                    <table border="0" class="table_diy table-hover" style="width:100%;">
                        <caption>
                            <em class=" icon-group"></em>排位赛&nbsp;TOP10
                        </caption>
                        <thead>
                        <tr>
                            <th>名次</th>
                            <th>用户姓名</th>
                            <th>胜</th>
                            <th>平</th>
                            <th>负</th>
                            <th>积分</th>
                            <th>胜率</th>
                            <th>比赛场次</th>
                            <th>信用度</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr th:each="t, index:${yysList}">
                            <td th:text="${index.count}">&nbsp;</td>
                            <td><img th:src="@{/images/vip.png}" alt="" src="" th:if="${t.vipType == '会员'}" /> <img th:src="@{/images/vip1.png}" alt="" src="" th:if="${t.vipType == 'VIP1'}" /> <img th:src="@{/images/vip2.png}" alt="" src="" th:if="${t.vipType == 'VIP2'}" /> <img th:src="@{/images/vip3.png}" alt="" src="" th:if="${t.vipType == 'VIP3'}" /> <span th:text="${t.nameName}">123</span></td>
                            <td th:text="${t.iss}">&nbsp;</td>
                            <td th:text="${t.isp}">&nbsp;</td>
                            <td th:text="${t.isf}">&nbsp;</td>
                            <td th:text="${t.jf}">&nbsp;</td>
                            <td th:text="${#numbers.formatPercent(t.sl, 1, 0)}">&nbsp;</td>
                            <td th:text="${t.bscc}">&nbsp;</td>
                            <td th:text="${#numbers.formatDecimal(t.xyd, 0, 0)}">&nbsp;</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <!--排位赛 HERE-->
                <!--已完成比赛 HERE-->
                <div class="span6 table_border" style="height:310px;">
                    <div class="head_title">
                        <h3 class="lighter smaller"><em class="icon-gamepad white"></em>已完成比赛</h3>
                    </div>
                    <div class="widget-body">
                        <div id="comment-tab" class="tab-pane">
                            <table border="0" class="table_diy table-hover" style="width:100%;">
                                <thead>
                                <tr>
                                    <th>球队</th>
                                    <th>进球</th>
                                    <th>进球</th>
                                    <th>球队</th>
                                    <th>状态</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr th:if="${null == yws}">
                                    <td colspan="5">暂时还没有开始比赛哦</td>
                                </tr>
                                <tr th:each="m:${ysw}" th:if="${null != yws}">
                                    <td th:text="${m.qd1Name}">123</td>
                                    <td th:text="${m.jq1}">123</td>
                                    <td th:text="${m.jq2}">123</td>
                                    <td th:text="${m.qd2Name}"></td>
                                    <td th:text="${m.bfzt.text}"></td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <!--已完成比赛 HERE-->
            </div>
        </div>
    </div>
    <div th:replace="common/skin :: skin"></div>
    <!--/#main-content-->
</div>
<!--/.fluid-container#main-container-->
<div th:replace="common/js"></div>
</body>
</html>